package entity.Car.model;

import entity.Car.model.reference.Brand;
import entity.Car.model.reference.Color;
import entity.Car.model.reference.Condition;
import entity.Car.model.reference.Currency;
import entity.User.model.User;

import java.io.Serializable;
import java.util.Date;
import java.util.Set;

/**
 * Created by vanches on 6.1.15.
 */
public class Transport implements Serializable {
    private int id;
    private Brand brand;
    private double price;
    private Currency currency;
    private Date date;
    private Condition condition;
    private Color color;
    private String description;
    private int userId;

    private Set<Car> cars;

    public Transport() {

    }

    public Transport(Brand brand, double price, Currency currency, Date date, Condition condition, Color color, String description, int userId) {
        this.brand = brand;
        this.price = price;
        this.currency = currency;
        this.date = date;
        this.condition = condition;
        this.color = color;
        this.description = description;
        this.userId=userId;

    }
    //region GET and SET

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Brand getBrand() {
        return brand;
    }

    public void setBrand(Brand brand) {
        this.brand = brand;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public Currency getCurrency() {
        return currency;
    }

    public void setCurrency(Currency currency) {
        this.currency = currency;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Condition getCondition() {
        return condition;
    }

    public void setCondition(Condition condition) {
        this.condition = condition;
    }

    public Color getColor() {
        return color;
    }

    public void setColor(Color color) {
        this.color = color;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Set<Car> getCars() {
        return cars;
    }

    public void setCars(Set<Car> cars) {
        this.cars = cars;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    //endregion
}
